package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class TeacherTest3 {
    public static void main(String[] args) {
        Teacher xiaomalaosh=new Teacher();
        xiaomalaosh.name="老刘";
        xiaomalaosh.age=30;
        xiaomalaosh.goodAt="java and html";
        xiaomalaosh.selfIntro();
        String name = xiaomalaosh.getName();
        System.out.println("这个老师的名字叫"+name);
        System.out.println("1年过去了。。。");
        xiaomalaosh.increaseAge();
        System.out.println(">>>>>>>>>>>>>>>>>>");
        xiaomalaosh.selfIntro();

        xiaomalaosh.giveLession();
    }
}
